import { defHttp } from '/@/utils/http/axios';

export class MsgPushApi {
  static msgPush (params) {
    return defHttp.post({ url: '/messagePushTask', params }, { isTransformResponse: false });
  }

  static findPage (params) {
    return defHttp.get({ url: '/messagePushTask/page', params });
  }
  static add (params) {
    return defHttp.post({ url: '/messagePushTask/add', params }, { isTransformResponse: false });
  }
  static edit (params) {
    return defHttp.post({ url: '/messagePushTask/edit', params }, { isTransformResponse: false });
  }
  static updateStatus (params) {
    return defHttp.post(
      { url: '/messagePushTask/updateStatus', params },
      { isTransformResponse: false },
    );
  }
  static detail (params) {
    return defHttp.post({ url: '/messagePushTask/detail', params });
  }

  static delete (params) {
    return defHttp.post({ url: '/messagePushTask/delete', params }, { isTransformResponse: false });
  }
}
